<template>
  <AddTaskform :id="businessId"></AddTaskform>
</template>

<script setup name="editTasking">
import { useRoute, useRouter } from 'vue-router'
import AddTaskform from '@/views/rsgl/taskManage/addTask/index.vue'
const route = useRoute()
let businessId = ref('')
watch(
  () => route.query.id,
  val => {
    if (route.query.id) {
      businessId.value = route.query.id
    }
  },
  {
    immediate: true
  }
)
async function init() {
  console.log('route===bb', route.query.id)
}
init()
</script>

<style lang="scss" scoped></style>
